'use strict';

const { Service } = require('egg');

class Shop extends Service {
  async getData() {
    // 多表查询
    return await this.app.mysql.query('select shop.id,shop.shopname,shop.subtitle,shop.detailimage,shoptype.type from shop,shoptype where shop.type=shoptype.id');
  }
}

module.exports = Shop;
